using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace ITAP.ShprossesBuilder
{
    public class Logger
    {
        private static FileStream str;
        private static StreamWriter writer;

        public static void Start(string filePath)
        {
            str = File.Open(filePath, FileMode.Create);
            writer = new StreamWriter(str);
        }

        public static void Write(string message)
        {
            writer.WriteLine(message);
            writer.Flush();
        }

        public static void Stop()
        {
            str.Close();
        }
    }
}
